package com.xinlu.common.exception;

import org.apache.log4j.Priority;

import com.xinlu.common.log.Logger;

public class SysException extends CommonException{

	private static final Logger logger = Logger.getLogger(SysException.class);

	
	/**
	 * Constructor
	 * 
	 * @param errCode
	 */
	public SysException(String errCode) {
		super(errCode);
		setErrCode(errCode);
	}

	/**
	 * Constructor
	 * 
	 * @param errCode
	 * @param e
	 */
	public SysException(String errCode, Throwable e) {
		super(errCode, e);
		setErrCode(errCode);
	}
	
	@Override
	public boolean getCurrentPageShow() {
		return true;
	}

	@Override
	public Priority getExceptionLevel() {
		return Priority.ERROR;
	}
	
	
	
}
